import { http } from "@/utils/http";
export function getServicePageList(data: Partial<ShopServicePageRequest & PageRequest>) {
  return http.post<MResponse<Array<ShopServiceVo>>>("/product/service/getServicePageList", { data });
}

export function addService(data: ShopServiceAddRequest) {
  return http.post<MResponse>("/product/service/addService", { data });
}

export function updateService(data: ShopServiceUpdateRequest) {
  return http.post<MResponse>("/product/service/updateService", { data });
}

export function delService(data: ShopServiceDelRequest) {
  return http.post<MResponse>("/product/service/delService", { data });
}

export function getServiceSelect() {
  return http.post<MResponse<Array<SelectVo>>>("/product/service/getServiceSelect");
}
